package models

import (
	"github.com/goravel/framework/database/orm"
)

type SearchFilter struct {
	orm.Model
	SortType     string           `gorm:"column:sort_type" form:"sort_type" json:"sort_type"`
	PublishTime  string           `gorm:"column:publish_time" form:"publish_time" json:"publish_time"`
	FilterDuring string           `gorm:"column:filter_during" form:"filter_during" json:"filter_during"`
	SearchRange  string           `gorm:"column:search_range" form:"search_range" json:"search_range"`
	ContentType  string           `gorm:"column:content_type" form:"content_type" json:"content_type"`
	Keyword      string           `gorm:"column:keyword;unique;" form:"keyword" json:"keyword"`
	VideoCount   int              `gorm:"column:video_count;comment:视频总量" form:"video_count" json:"video_count"`
	Comments     []*CommentFilter `gorm:"many2many:search_comment"`
}
